<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:p="http://primefaces.org/ui">
    
    
        <h:head>
        </h:head>
    <h:body>

      
        <h:form>
        <h:panelGroup id="dynaFormGroup">  
    <p:messages id="messages" showSummary="true"/>  
  
    <pe:dynaForm id="dynaForm" value="#{dynaFormController.model}" var="data">  
        <pe:dynaFormControl type="input" for="txt">  
            <p:inputText id="txt" value="#{data.paramValue}" required="#{data.required}"/>  
        </pe:dynaFormControl>  
                <pe:dynaFormControl type="calendar" for="cal" styleClass="calendar">  
            <p:calendar id="cal" value="#{data.paramValue}" required="#{data.required}" showOn="button"/>  
        </pe:dynaFormControl> 

  
        <f:facet name="buttonBar">  
            <p:commandButton value="Submit" action="#{dynaFormController.submitFor}"  
                             process="dynaForm" update=":dynaFormGroup"  
                             oncomplete="handleComplete(xhr, status, args)"/>  
            <p:commandButton type="reset" value="Reset" style="margin-left: 5px;"/>  
        </f:facet>  
    </pe:dynaForm>  
</h:panelGroup>  

        </h:form>
    </h:body>

</html>